package edu.scau.mis.pos.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
public class Change {
    private String changeSn;        // 换货单编号
    private String orderId;         // 订单ID
    private String userName;        // 用户名称
    @Schema(type = "number", format = "double", example = "199.99")
    private Double totalAmount;     // 总金额
    @Schema(type = "number", format = "double", example = "199.99")
    private Double amount; // 未打折前的总原价
    private Integer totalQuantity;  // 总数量
    private String promotionType;   // 促销类型
    private String content;         // 促销内容
    private String payType;         // 支付方式
    @Schema(type = "string", format = "date-time", description = "支付时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date paymentTime;       // 支付时间

    private Integer status;         // 订单状态, 0:待支付, 1:已支付, 2:已退款, 3:换货中, 4:已换货
    private String remarks;         // 备注
    @Schema(type = "string", format = "date-time", description = "换货时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date changeTime;        // 换货时间

}
